﻿capital = 91
2000.1.1 = {
	set_cosmetic_tag = SPR
	set_country_flag = antarctica_ccamlr_member
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	set_country_flag = EU_joined_the_eurozone
	set_country_flag = generic_election_killswitch
	set_country_flag = SPR_initial_election_flag
	set_country_flag = is_getting_esco_subsidies
	add_to_array = { global.unesco_recipients = THIS }
	set_country_flag = is_getting_cdf_subsidies
	add_to_array = { global.uncdf_recipients = THIS }
	add_dynamic_modifier = { modifier = un_aid_subsidies_modifier }

	complete_special_project = sp:sp_aircraft_project
	complete_special_project = sp:sp_space_program
	complete_special_project = sp:sp_naval_vessel_project
	complete_special_project = sp:sp_composite_production

	set_naval_oob = "SPR_2000_naval_mtg"

	set_technology = {
		corvette_hull_1 = 1
		corvette_hull_2 = 1
		corvette_hull_3 = 1

		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1

		destroyer_hull_1 = 1
		destroyer_hull_2 = 1

		cruiser_hull_1 = 1
		battleship_hull_1 = 1

		helicopter_operator_hull_1 = 1
		helicopter_operator_hull_2 = 1

		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		attack_submarine_hull_3 = 1

		missile_submarine_hull_1 = 1

		aircraft_carrier_engineering = 1
		aircraft_heli_engineering_1 = 1
		aircraft_heli_engineering_2 = 1

		tech_submarine_engineering_1 = 1

		tech_naval_systems_engineering = 1
		tech_power_systems_1 = 1
		tech_power_systems_2 = 1

		tech_combat_support_systems = 1
		tech_fire_control_1 = 1
		tech_fire_control_2 = 1
		tech_combat_radar_1 = 1
		tech_combat_radar_2 = 1
		tech_combat_radar_3 = 1
		tech_combat_sonar_1 = 1
		tech_combat_sonar_2 = 1
		tech_combat_sonar_3 = 1

		tech_early_naval_weapon_systems = 1
		tech_naval_weapon_systems = 1
		tech_light_guns_1 = 1
		tech_light_guns_2 = 1

		tech_point_defense_chain_gun = 1
		tech_point_defense_system_1 = 1
		tech_point_defense_system_2 = 1
		tech_point_defense_system_3 = 1

		tech_turret_missiles_surface_1 = 1
		tech_turret_missiles_surface_2 = 1
		tech_turret_missiles_aa_1 = 1
		tech_turret_missiles_aa_2 = 1
		tech_turret_missiles_aa_3 = 1
		tech_vls_surface_1 = 1
		tech_vls_surface_2 = 1
		tech_vls_surface_3 = 1
		tech_vls_aa_1 = 1
		tech_vls_aa_2 = 1
		tech_vls_aa_3 = 1

		tech_torpedoes_1 = 1
		tech_torpedoes_2 = 1

		tech_diesel_power_systems_1 = 1

		tech_landing_craft_1 = 1
	}

	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = {
			decryption1 = 1
			decryption2 = 1
			encryption1 = 1
			encryption2 = 1
		}
	}

	#Príncipe de Asturias Class
	create_equipment_variant = {
		name = "Príncipe de Asturias Class"
		type = helicopter_operator_hull_1
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_1
			fixed_ship_auxillary_slot_3 = module_fuel_tank
			fixed_ship_auxillary_slot_2 = module_ciws_1
			fixed_ship_auxillary_slot = empty
			fixed_ship_battery_slot = module_light_flight_deck_2
			front_1_custom_slot = module_ciws_1
			mid_1_custom_slot = module_helipads_1
			rear_1_custom_slot = module_ciws_1
		}
	}
	#Galicia Class
	create_equipment_variant = {
		name = "Galicia Class"
		type = helicopter_operator_hull_2
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
			fixed_ship_radar_slot = module_radar_3
			fixed_ship_auxillary_slot_3 = module_fuel_tank
			fixed_ship_auxillary_slot_2 = module_chain_gun
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_light_flight_deck_1
			front_1_custom_slot = module_helipads_1
			mid_1_custom_slot = module_fuel_tank
			rear_1_custom_slot = module_helipads_1
		}
	}
	#Rio Damuji Class
	create_equipment_variant = {
		name = "Rio Damuji Class"
		type = frigate_hull_2
		name_group = SPR_DD_HISTORICAL
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_sonar_2
			fixed_ship_auxillary_slot_2 = empty
			fixed_ship_auxillary_slot_1 = empty
			fixed_ship_auxillary_slot = module_fuel_tank
			fixed_ship_battery_slot = module_127mm_battery
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_light_helipad_1
		}
		icon = "gfx/interface/technologies/SPR/NAV/F2_Rio_Damuji.dds"
		obsolete = yes
	}
	#Santa María Class
	create_equipment_variant = {
		name = "Santa María Class - Batch #1"
		type = frigate_hull_2
		#name_group = SPAIN
		parent_version = 1
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_sonar_2
			fixed_ship_auxillary_slot_2 = module_naval_missile_mount_quad
			fixed_ship_auxillary_slot_1 = module_torpedoes_2
			fixed_ship_auxillary_slot = module_fuel_tank
			fixed_ship_battery_slot = module_127mm_battery
			front_1_custom_slot = module_ciws_2
			rear_1_custom_slot = module_light_helipad_1
			fixed_ship_missile_ammo_slot = module_naval_ammo_air_defense_2
		}
	}
	#Santa María Class
	create_equipment_variant = {
		name = "Santa María Class - Batch #2"
		type = frigate_hull_2
		#name_group = SPAIN
		parent_version = 2
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
			fixed_ship_radar_slot = module_sonar_3
			fixed_ship_auxillary_slot_2 = module_anti_submarine_mortar
			fixed_ship_auxillary_slot_1 = module_torpedoes_2
			fixed_ship_auxillary_slot = module_naval_vls_cells_8
			fixed_ship_battery_slot = module_127mm_battery
			front_1_custom_slot = module_ciws_3
			rear_1_custom_slot = module_light_helipad_1
		}
	}
	#Baleares Class
	create_equipment_variant = {
		name = "Baleares Class"
		type = frigate_hull_1
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_jet_turbine_power
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_sonar_1
			fixed_ship_auxillary_slot_2 = module_naval_missile_mount_quad
			fixed_ship_auxillary_slot_1 = module_torpedoes_1
			fixed_ship_auxillary_slot = module_naval_missile_mount_quad
			fixed_ship_battery_slot = module_76mm_battery
			front_1_custom_slot = module_naval_missile_mount_quad
			rear_1_custom_slot = module_fuel_tank
			fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_1
		}
	}

	#Delfín Class
	create_equipment_variant = {
		name = "Delfín Class"
		type = attack_submarine_hull_1
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_sub_diesel_electric_power
			fixed_ship_radar_slot = module_sonar_1
			fixed_ship_auxillary_slot_3 = module_torpedoes_1
			fixed_ship_auxillary_slot_2 = module_sub_esm_1
			fixed_ship_auxillary_slot_1 = module_fuel_tank
			fixed_ship_auxillary_slot = module_torpedoes_1
			fixed_ship_battery_slot = module_anti_ship_torpedoes_1
		}
	}
	#Agosta Class
	create_equipment_variant = {
		name = "Agosta Class"
		type = attack_submarine_hull_2
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_sub_diesel_electric_power
			fixed_ship_radar_slot = module_sonar_2
			fixed_ship_auxillary_slot_3 = module_torpedoes_2
			fixed_ship_auxillary_slot_2 = module_sub_esm_1
			fixed_ship_auxillary_slot_1 = module_torpedoes_2
			fixed_ship_auxillary_slot = module_naval_sub_vls_cells_8
			fixed_ship_battery_slot = module_anti_ship_torpedoes_2
			fixed_ship_missile_ammo_slot = module_naval_sub_ammo_anti_ship_1
		}
	}
	#Descubierta Class
	create_equipment_variant = {
		name = "Descubierta Class - Surface Warfare Batch"
		type = corvette_hull_2
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_naval_missile_mount_quad
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_naval_missile_mount_quad
			rear_1_custom_slot = module_torpedoes_2
			fixed_ship_missile_ammo_slot = module_naval_ammo_balanced_2
		}
	}
	#Descubierta Class
	create_equipment_variant = {
		name = "Descubierta Class - Anti-Submarine Batch"
		type = corvette_hull_2
		#name_group = SPAIN
		parent_version = 1
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_torpedoes_2
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_naval_missile_mount_quad
			rear_1_custom_slot = module_anti_submarine_mortar
			fixed_ship_missile_ammo_slot = module_naval_ammo_air_defense_2
		}
	}
	#Segura Class - Mine Countermeasures
	create_equipment_variant = {
		name = "Segura Class"
		type = corvette_hull_2
		#name_group = SPR_MODERN_CORVETTE_NAMES
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_2
			fixed_ship_auxillary_slot = module_mineclearing
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_anti_submarine_mortar
		}
		icon = "gfx/interface/technologies/SPR/NAV/CRV2_Segura.dds"
	}
	#Chilreu Class
	#Descubierta Class
	create_equipment_variant = {
		name = "Chilreu Patrol Class"
		type = corvette_hull_1
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_analog_fire_control
			fixed_ship_radar_slot = module_radar_1
			fixed_ship_auxillary_slot = empty
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_chain_gun
		}
	}
	#Serviola Class
	create_equipment_variant = {
		name = "Serviola Patrol Class"
		type = corvette_hull_3
		#name_group = SPAIN
		parent_version = 0
		modules = {
			fixed_ship_engine_slot = module_light_surface_diesel_power_1
			fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
			fixed_ship_radar_slot = module_radar_3
			fixed_ship_auxillary_slot = module_chain_gun
			fixed_ship_battery_slot = module_76mm_gun_2
			front_1_custom_slot = module_chain_gun
			rear_1_custom_slot = module_light_helipad_1
		}
		icon = "gfx/interface/technologies/SPR/NAV/CRV3_Serviola.dds"
	}

	complete_special_project = sp:sp_armoured_vehicle_project
	if = { limit = { has_dlc = "No Step Back" }

		set_oob = "SPR_2000_nsb"
		set_technology = {
			mbt_tech_ops = 1
			mbt_tech = 1
			tank_ammo_1 = 1
			defensive_systems = 1
			nsb_gun_technology_1 = 1
			nsb_artillery_ammo_1 = 1
			nsb_special_ammo_0 = 1
			nsb_AA_autocannon_0 = 1
			nsb_SHORAD_missile_0 = 1
			mbt_tech_1 = 1
			defensive_systems_2 = 1
			nsb_gun_technology_2 = 1
			nsb_artillery_ammo_2 = 1
			nsb_special_ammo_1 = 1
			nsb_AA_autocannon_1 = 1
			nsb_SHORAD_missile_1 = 1
			mbt_tech_2 = 1
			tank_ammo_2 = 1
			tank_components_tech = 1
			tank_components_tech_2 = 1
			small_medium_gun_tech = 1
			small_medium_gun_tech_2 = 1
			armor_tech = 1
			armor_tech_2 = 1
			era_tech = 1
			diesel_engine_tech = 1
			diesel_engine_tech_2 = 1
			diesel_engine_tech_3 = 1
			diesel_engine_tech_4 = 1

			small_autocannon_tech = 1
			small_autocannon_tech_2 = 1
			nsb_artillery_0 = 1
			nsb_artillery_1 = 1
			nsb_Arty_upgrade_1 = 1
			nsb_artillery_2 = 1 #SBT 155/52 SIAC

			nsb_Anti_Air_0 = 1
			nsb_Anti_Air_1 = 1
			nsb_AA_upgrade_1 = 1

			helo_ops_tech = 1
			nsb_attack_helicopter_tech_1 = 1
			nsb_engine_tech_1 = 1
			nsb_atgm_tech_1 = 1
			nsb_multiple_atgm_tech_1 = 1
			nsb_heavy_atgm_tech_1 = 1
			nsb_rocket_pods_tech_1 = 1
			nsb_gun_pods_tech_1 = 1
			nsb_light_nose_gun_tech_1 = 1


			nsb_defense_tech_1 = 1




			nsb_transport_helicopter_1 = 1
			nsb_transport_helicopter_2 = 1
			nsb_Arty_upgrade_2 = 1
		}

		create_equipment_variant = {
			name = "Pegaso BMR"
			type = medium_tank_amphibious_chassis_1
			parent_version = 0
			modules = {
				main_armament_slot = afv_machine_gun
			   reload_type_slot = automatic_loading
			   ammunition_load_slot = machine_gun_ammo_1
				turret_type_slot = tank_no_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				special_type_slot_2 = afv_troop_capacity
				special_type_slot_4 = tank_battlestation_1
				special_type_slot_1 = smoke_launchers_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			icon = "gfx/interface/technologies/SPR/LAND/APC1.dds"
		}

		create_equipment_variant = {
			name = "Pegaso VEC-M1"
			type = medium_tank_destroyer_chassis_2
			parent_version = 0
			modules = {
				main_armament_slot = small_autocannon_2
			   ammunition_load_slot = mixed_autocannon_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_wheeled_suspension_medium
				engine_type_slot = tank_diesel_engine_gen4
				armor_type_slot = afv_alum_armor_gen2
				reload_type_slot = automatic_loading
				secondary_armament_slot = empty
				special_type_slot_1 = smoke_launchers_2
				special_type_slot_2 = empty
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 5
			}
			icon = "gfx/interface/technologies/SPR/LAND/REC1.dds"
		}
		create_equipment_variant = {
			name = "AMX-30EM1"
			type = medium_tank_chassis_0
			parent_version = 1
			modules = {
				main_armament_slot = tank_small_medium_cannon_2
				secondary_armament_slot = afv_coax_autocannon
			   ammunition_load_slot = mixed_main_ammo_1
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen1
				reload_type_slot = manual_loading
				special_type_slot_1 = empty
				special_type_slot_4 = tank_battlestation_1
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			model = "FRA_armor_Bat_1_entity"
			obsolete = yes
			icon = "gfx/interface/technologies/SPR/LAND/MBT2.dds"
		}
		add_equipment_to_stockpile = {
			type = medium_tank_chassis_0
			variant_name = "AMX-30EM1"
			amount = 149
			producer = SPR
		}
		create_equipment_variant = {
			name = "AMX-30EM2"
			type = medium_tank_chassis_0
			parent_version = 2
			modules = {
				main_armament_slot = tank_small_medium_cannon_2
				secondary_armament_slot = afv_coax_autocannon
				ammunition_load_slot = mixed_main_ammo_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				armor_type_slot = tank_steel_armor_gen1
				engine_type_slot = tank_diesel_engine_gen2
				reload_type_slot = manual_loading
				special_type_slot_1 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 2
			}
			model = "FRA_armor_Bat_1_entity"
			obsolete = yes
			icon = "gfx/interface/technologies/SPR/LAND/MBT2.dds"
		}
		add_equipment_to_stockpile = {
			type = medium_tank_chassis_0
			variant_name = "AMX-30EM2"
			amount = 150
			producer = SPR
		}
		create_equipment_variant = {
			name = "Pizarro ICV"
			type = medium_tank_flame_chassis_2
			parent_version = 1
			modules = {
				main_armament_slot = small_autocannon_2
				ammunition_load_slot = mixed_autocannon_ammo_1
				reload_type_slot = automatic_loading
				secondary_armament_slot = empty
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension_medium
				engine_type_slot = tank_diesel_engine_gen4
				armor_type_slot = afv_alum_armor_gen2
				special_type_slot_1 = afv_troop_capacity
				special_type_slot_2 = smoke_launchers_2
				special_type_slot_3 = empty
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 4
			}
			icon = "gfx/interface/technologies/SPR/LAND/IFV1.dds"
		}
		add_equipment_to_stockpile = {
			type = medium_tank_flame_chassis_2
			variant_name = "Pizarro ICV"
			amount = 14
			producer = SPR
		}
		create_equipment_variant = {
			name = "MBB Bo 105"
			type = heavy_tank_chassis_0
			parent_version = 0
			modules = {
				chassis_type_slot = helicopter_light_chassis
				   helicopter_body_layout = light_gunship_layout
				helicopter_body_mount_1 = helicopter_multiple_atgm_gen1
				engine_type_slot = helicopter_turbine_engine_gen1
				defence_type_slot = flare_launchers
				sensor_and_avionics_slot = sensors_and_avionics_gen_1
			}
			upgrades = {
				helicopter_nsb_upgrade = 0
			}
			icon = "GFX_USA_attack_helicopter_1_medium"
		}


		else = {
			set_oob = "SPR_2000_nonnsb"

			set_technology = {
				Early_APC = 1
				MBT_1 = 1
				MBT_2 = 1
				IFV_1 = 1
				IFV_2 = 1
				IFV_3 = 1
				IFV_4 = 1
				APC_1 = 1
				APC_2 = 1
				APC_3 = 1
				SP_arty_0 = 1
				tech_arty_0 = 1
				tech_arty_1 = 1
				Arty_upgrade_1 = 1
				tech_arty_2 = 1 #SBT 155/52 SIAC
				Anti_Air_0 = 1
				Anti_Air_1 = 1
				AA_upgrade_1 = 1
				SP_Anti_Air_0 = 1
				SP_Anti_Air_1 = 1
				Rec_tank_0 = 1
				Rec_tank_1 = 1
				attack_helicopter_1 = 1
				transport_helicopter_1 = 1
				transport_helicopter_2 = 1
				Arty_upgrade_2 = 1
			}
		}
	}
	if = {
		limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "SPR_2000_bba"
		set_technology = {

			early_airframe_designs = 1
			gen_3_light = 1
			gen_4_light = 1
			gen_3_medium = 1
			gen_4_medium = 1
			gen_3_large = 1
			gen_4_large = 1

			flying_wing_design = 1
			variable_wing_design = 1
			delta_wing_design = 1

			engines_2 = 1
			engines_3 = 1

			refueling_1 = 1

			avionics_1 = 1
			avionics_2 = 1

			awacs_1 = 1

			redundant_1 = 1

			early_weapons = 1
			air_weapons_1 = 1
			air_weapons_2 = 1
			countermeasures_1 = 1
			countermeasures_2 = 1

			ag_weapons_1 = 1

			naval_weapons_1 = 1
			naval_weapons_2 = 1
			special_mad_1 = 1
			special_mad_2 = 1

			tgp_recon_1 = 1
		}

		create_equipment_variant = { #medium transport
			name = "CASA/IPTN CN-235"
			type = large_plane_air_transport_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_buff_transport
				fixed_gun_slot = empty
				engine_type_slot = engine_prop_double_1
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_straight
				special_slot_type_2 = spec_redundant_1
				fixed_auxiliary_weapon_slot_1 = empty
			}
			obsolete = yes
			icon = "gfx/interface/technologies/SPR/AIR/C2.dds"
		}
		create_production_license = {
			target = IND
			equipment = {
				type = large_plane_air_transport_airframe_2
				version_name = "CASA/IPTN CN-235"
			}
			cost_factor = 0
		}

		create_equipment_variant = { #Large Transport
			name = "C-212 Aviocar"
			type = large_plane_air_transport_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_buff_transport
				fixed_gun_slot = empty
				engine_type_slot = engine_prop_double_1
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_straight
				special_slot_type_2 = spec_redundant_2
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
			}
			icon = "gfx/interface/technologies/SPR/AIR/C1.dds"
		}
		create_production_license = {
			target = IND
			equipment = {
				type = large_plane_air_transport_airframe_1
				version_name = "C-212 Aviocar"
			}
			cost_factor = 0
		}

		create_equipment_variant = { #Large Transport
			name = "Airbus C-295"
			type = large_plane_air_transport_airframe_2
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_buff_transport
				fixed_gun_slot = empty
				engine_type_slot = engine_prop_double_2
				avionics_type_slot = avionics_manned_2
				wingform_type_slot = wing_straight
				special_slot_type_1 = spec_countermeasures_1
				special_slot_type_2 = spec_redundant_2
				special_slot_type_3 = empty
				fixed_auxiliary_weapon_slot_1 = empty
				fixed_auxiliary_weapon_slot_2 = empty
			}
			icon = "gfx/interface/technologies/SPR/AIR/C3.dds"
		}

		create_equipment_variant = {
			name = "CASA C-101"
			type = small_plane_strike_airframe_1
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_1
				fixed_gun_slot = empty
				engine_type_slot = engine_light_single_2
				avionics_type_slot = avionics_manned_1
				wingform_type_slot = wing_straight
				special_slot_type_1 = spec_countermeasures_1
				special_slot_type_2 = spec_tgp_1
			}
			obsolete = yes
			icon = "gfx/interface/technologies/SPR/AIR/T1.dds"
		}
		create_production_license = {
			target = CHL
			equipment = {
				type = small_plane_strike_airframe_1
				version_name = "CASA C-101"
			}
			cost_factor = 0
		}

		create_equipment_variant = {
			name = "Typhoon Tranche 1"
			type = medium_plane_airframe_2
			design_team = mio:SPR_Eurofighter_aircraft_manufacturer
			parent_version = 0
			modules = {
				fixed_main_weapon_slot = weap_mp_med_hardpoint_1
				fixed_gun_slot = weap_multi_gun_1
				engine_type_slot = engine_jet_double_3
				avionics_type_slot = avionics_manned_3
				wingform_type_slot = wing_delta_canard
				special_slot_type_1 = spec_countermeasures_2
				special_slot_type_2 = empty
				special_slot_type_3 = spec_tgp_1
				fixed_auxiliary_weapon_slot_1 = weap_a2a_hardpoint_2
				fixed_auxiliary_weapon_slot_2 = weap_mp_light_hardpoint_2
			}
			icon = "gfx/interface/technologies/ENG/AIR/MR3.dds"
			model = "GEN_eurofighter_entity"
		}

		else = {
			set_air_oob = "SPR_2000_nonbba"

			set_technology = {

				early_fighter = 1
				CV_MR_Fighter1 = 1
				CV_MR_Fighter2 = 1

				AS_Fighter1 = 1
				AS_Fighter2 = 1

				MR_Fighter1 = 1
				MR_Fighter2 = 1
				MR_upgrade_1 = 1

				#Dassault Mirage III - OLD Interceptor

				Strike_fighter1 = 1
				Strike_fighter2 = 1


				#Alpha Jet
				L_Strike_fighter1 = 1
				L_Strike_fighter2 = 1

				early_bomber = 1
				strategic_bomber1 = 1

				transport_plane1 = 1
				transport_plane2 = 1
				transport_plane3 = 1

				naval_plane1 = 1
				naval_plane2 = 1

				awacs_plane1 = 1
			}
		}
	}
	complete_special_project = sp:sp_missile_project
	if = { limit = { has_dlc = "Gotterdammerung" }

		set_technology = {
			ballistic_missile = 1

			IRBM = 1

			cruise_missile = 1

			GLCM = 1
			GLCM1 = 1
			GLCM2 = 1

			TEL_launched_missiles = 1
			TEL_3 = 1
			TEL_4 = 1

			air_defense = 1

			SAM = 1
			SAM0 = 1
			SAM1 = 1
			SAM2 = 1
			SAM3 = 1

			hid_tech_missile_1 = 1
			hid_tech_missile_2 = 1
			hid_tech_missile_3 = 1
			hid_tech_missile_4 = 1
			hid_tech_missile_5 = 1
			hid_tech_missile_6 = 1
		}


		set_variable = { num_launchers_set = 6 }
	}

	set_technology = {
		COMSAT1 = 1
		COMSAT2 = 1

		SPYSAT1 = 1
		SPYSAT2 = 1

		OLV1 = 1

		nuclear_technology = 1
		reactor1 = 1
		reactor2 = 1
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1

		combined_arms = 1

		infantry_weapons_1 = 1
		infantry_weapons_2 = 1
		infantry_weapons_3 = 1
		infantry_weapons_4 = 1
		support_weapons = 1
		support_weapons2 = 1
		support_weapons3 = 1
		tandem_charge_warheads = 1
		squad_automatic_weapon = 1
		special_forces_tech_1 = 1
		special_forces_tech_2 = 1

		cnc_equipment_1 = 1
		cnc_equipment_2 = 1
		cnc_equipment_3 = 1

		land_drone_equipment_type = 1

		Anti_tank_0 = 1
		Anti_tank_1 = 1
		AT_upgrade_1 = 1

		Heavy_Anti_tank_0 = 1
		Heavy_Anti_tank_1 = 1

		combat_eng_equipment = 1

		util_vehicle_1 = 1
		util_vehicle_2 = 1
		util_vehicle_3 = 1

		night_vision_1 = 1
		night_vision_2 = 1
		night_vision_3 = 1

		body_armor_1 = 1
		camouflage_1 = 1
		camouflage_2 = 1

		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		microprocessors = 1
		computing2 = 1

		radar = 1
		internet1 = 1 	#1G
		internet2 = 1
		gprs = 1
		fuel_silos = 1

		nanofibers_1 = 1
		nanofibers_2 = 1
		nanofibers_3 = 1
		printing_1 = 1
		printing_2 = 1
		printing_3 = 1
		genetics_1 = 1
		genetics_2 = 1
		fuel_refining = 1
		fuel_refining2 = 1
		energy_efficiency = 1
		energy_efficiency2 = 1
		fuel_efficiency = 1
		early_renewables = 1
		renewables = 1
		electrification_1 = 1
		construction1 = 1
		stronghold_building_1 = 1
		land_fort_building_1 = 1
		construction2 = 1

	}
	complete_special_project = sp:sp_helicopter_project
	complete_special_project = sp:sp_awacs_project
	complete_special_project = sp:sp_nuclear_energy
	add_ideas = {
		wto_member
		partially_nationalized_healthcare
		partial_environmental_protections
		extensive_maintenance
		euro
		light_regulations

		#Economic Cycle
		stable_growth
		#Corruption
		corruption_level_04
		#non faction effect
		medium_far_right_movement
		#Faction 1
		farmers
		#Faction 2
		labour_unions
		#Faction 3
		landowners

		#Bureacracy
		bureau_01
		#Military Spending
		defence_01
		#Internal Security
		police_04
		#Education budget
		edu_03
		#Health budget
		health_04
		#Social spending
		social_06

		#Trade Law
		consumption_economy
		#Conscription Law
		draft_army
		#Women in the military
		volunteer_women
		#Foreign Intervention Law
		intervention_limited_interventionism
		#Officer Training
		officer_international_education
		nuclear_energy

		#special
		SPR_frequent_droughts_1
		SPR_deindustrialization
		SPR_idea_regional_autonomy
		SPR_idea_grey_market

		#Other
		christian
		EU_member
		NATO_member
		western_country
		multi_ethnic_state_idea
		SPR_idea_the_eta_1
		at_member
		un_aid_esco_member

		un_aid_ido_member
		un_aid_cdf_member

		antarctica_small_treaty_admin_cost_1
		no_currency_backing
	}
	add_to_array = { global.un_aid_esco_contributor = THIS }
	add_to_array = { global.un_aid_ido_contributor = THIS }
	add_to_array = { global.un_aid_cdf_contributor = THIS }

	# Influence system
	add_to_array = { SPR.influence_targets = POR }
	add_to_array = { SPR.influence_targets = FRA }
	add_to_array = { SPR.influence_targets = MOR }
	add_to_array = { SPR.influence_targets = ALG }
	add_to_array = { SPR.influence_targets = ITA }
	add_to_array = { SPR.influence_targets = EGU }
	add_to_array = { SPR.influence_targets = VEN }
	add_to_array = { SPR.influence_targets = DOM }
	add_to_array = { SPR.influence_targets = PHI }

	init_influence = yes
	set_variable = { domestic_influence_amount = 300 }
	add_to_array = { influence_array = FRA.id }
	add_to_array = { influence_array_val = 40 }
	add_to_array = { influence_array = ENG.id }
	add_to_array = { influence_array_val = 30 }
	add_to_array = { influence_array = ITA.id }
	add_to_array = { influence_array_val = 10 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 10 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 2 }
	sort_influence = yes

	# Economy
	set_variable = { var = debt value = 687.378 }
	set_variable = { var = treasury value = 52 }
	set_variable = { var = corporate_tax_rate value = 35 }
	set_variable = { var = population_tax_rate value = 18 }
	set_variable = { var = int_investments value = 98 }
	set_variable = { inflation_rate_var = 0.02310 }
	set_variable = { cb_policy_rate = 3 }
	set_variable = { currency_strength = 0.65 }
	set_variable = { gdp_per_capita = 34.757 }
	set_variable = { overall_productivity = 1019 }
	set_variable = { var_reactor_material_stockpile = 7500 }

	# Spanish System
	add_to_array = { SPR_culture_opinion = 60 } # Catalonia = 0
	add_to_array = { SPR_culture_opinion = 35 } # Basque = 1
	add_to_array = { SPR_culture_opinion = 45 } # Galician = 2
	add_to_array = { SPR_culture_opinion = 70 } # Andaluces = 3
	add_to_array = { SPR_culture_opinion = 65 } # Canaries = 4
	SPR_init_state_dynamic_modifiers = yes
	add_to_tech_sharing_group = volkswagen_group_Tech_Share

	# Internal Factions
	set_variable = { farmers_opinion = 40 }
	set_variable = { landowners_opinion = 60 }
	set_variable = { labour_unions_opinion = 65 }

	add_opinion_modifier = { target = ADO modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ADO modifier = spanish_speaking }
	add_opinion_modifier = { target = EGU modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = EGU modifier = spanish_speaking }
	add_opinion_modifier = { target = MEX modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = MEX modifier = spanish_speaking }
	add_opinion_modifier = { target = COL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = COL modifier = spanish_speaking }
	add_opinion_modifier = { target = ARG modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ARG modifier = spanish_speaking }
	add_opinion_modifier = { target = PRU modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PRU modifier = spanish_speaking }
	add_opinion_modifier = { target = VEN modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = VEN modifier = spanish_speaking }
	add_opinion_modifier = { target = CHL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = CHL modifier = spanish_speaking }
	add_opinion_modifier = { target = ECU modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ECU modifier = spanish_speaking }
	add_opinion_modifier = { target = GUA modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = GUA modifier = spanish_speaking }
	add_opinion_modifier = { target = BOL modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = BOL modifier = spanish_speaking }
	add_opinion_modifier = { target = DOM modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = DOM modifier = spanish_speaking }
	add_opinion_modifier = { target = HON modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = HON modifier = spanish_speaking }
	add_opinion_modifier = { target = PAR modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PAR modifier = spanish_speaking }
	add_opinion_modifier = { target = ELS modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = ELS modifier = spanish_speaking }
	add_opinion_modifier = { target = NIC modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = NIC modifier = spanish_speaking }
	add_opinion_modifier = { target = COS modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = COS modifier = spanish_speaking }
	add_opinion_modifier = { target = CUB modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = CUB modifier = spanish_speaking }
	add_opinion_modifier = { target = PAN modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = PAN modifier = spanish_speaking }
	add_opinion_modifier = { target = URG modifier = spanish_speaking }
	reverse_add_opinion_modifier = { target = URG modifier = spanish_speaking }

	add_opinion_modifier = { target = BEL modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = BEL modifier = EU_member_opinion }
	add_opinion_modifier = { target = FRA modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = FRA modifier = EU_member_opinion }
	add_opinion_modifier = { target = GER modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = GER modifier = EU_member_opinion }
	add_opinion_modifier = { target = ITA modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = ITA modifier = EU_member_opinion }
	add_opinion_modifier = { target = LUX modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = LUX modifier = EU_member_opinion }
	add_opinion_modifier = { target = HOL modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = HOL modifier = EU_member_opinion }
	add_opinion_modifier = { target = DEN modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = DEN modifier = EU_member_opinion }
	add_opinion_modifier = { target = IRE modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = IRE modifier = EU_member_opinion }
	add_opinion_modifier = { target = GRE modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = GRE modifier = EU_member_opinion }
	add_opinion_modifier = { target = POR modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = POR modifier = EU_member_opinion }
	add_opinion_modifier = { target = AUS modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = AUS modifier = EU_member_opinion }
	add_opinion_modifier = { target = FIN modifier = EU_member_opinion }
	reverse_add_opinion_modifier = { target = FIN modifier = EU_member_opinion }

	add_opinion_modifier = { target = USA modifier = large_commercial_relations }
	reverse_add_opinion_modifier = { target = USA modifier = large_commercial_relations }
	add_opinion_modifier = { target = ITA modifier = historic_friends }
	reverse_add_opinion_modifier = { target = ITA modifier = historic_friends }
	add_opinion_modifier = { target = ADO modifier = historic_friends }
	reverse_add_opinion_modifier = { target = ADO modifier = historic_friends }
	add_opinion_modifier = { target = POR modifier = diplomatic_support }
	reverse_add_opinion_modifier = { target = POR modifier = diplomatic_support }
	add_opinion_modifier = { target = SOV modifier = trade_mission }
	reverse_add_opinion_modifier = { target = SOV modifier = trade_mission }

	#2000 NATO Relations
	add_opinion_modifier = { target = BEL modifier = NATO_member_modifier }
	reverse_add_opinion_modifier = { target = BEL modifier = NATO_member_modifier }
	add_opinion_modifier = { target = ITA modifier = NATO_member_modifier }
	reverse_add_opinion_modifier = { target = ITA modifier = NATO_member_modifier }

	give_guarantee = ADO #Spain and France are both responsible for Andorra's Defense

	set_popularities = {
		democratic = 62.0
		communism = 15.0
		fascism = 0.0
		neutrality = 19.0
		nationalist = 4.0
	}
	set_politics = {
		ruling_party = democratic
		last_election = "1996.3.1"
		election_frequency = 48
		elections_allowed = yes
	}

	### Election Threshold
	set_variable = { election_threshold = 0.03 }
	start_politics_input = yes
	### Party Popularities
	set_variable = { party_pop_array^1 = 0.35 } #conservatism
	set_variable = { party_pop_array^3 = 0.27 } #socialism
	set_variable = { party_pop_array^4 = 0.03 } #Communist-State
	set_variable = { party_pop_array^5 = 0.12 } #anarchist_communism
	set_variable = { party_pop_array^12 = 0.01 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^16 = 0.06 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0.05 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.07 } #neutral_Social
	set_variable = { party_pop_array^20 = 0.04 } #Nat_Populism

	### Ruling Party
	set_variable = { ruling_party = 1 }
	startup_politics = yes

	create_country_leader = {
		name = "José María Aznar"
		picture = "jose_maria_aznar.dds"
		ideology = conservatism
		traits = {
			western_conservatism
			lawyer
			career_politician
			silent_workhorse
		}
	}

	recruit_character = SPR_alfonso_pardo_de_santayana_y_coloma
	recruit_character = SPR_jaime_dominguez_buj
	recruit_character = SPR_jose_julio_rodriguez_fernandez
	recruit_character = SPR_fernando_gutierrez_diaz_de_otazu
	recruit_character = SPR_pedro_pitarch_bartolome
	recruit_character = SPR_antonio_planells
	recruit_character = SPR_antonio_martorell_lacave
	recruit_character = SPR_fernando_garcia_sanchez
	recruit_character = SPR_francisco_jose_cortes_uria
	recruit_character = SPR_francisco_jose_garcia_vega
	recruit_character = SPR_jose_jimenez_ruiz

	if = {
		limit = {
			has_dlc = "La Resistance"
		}
		create_intelligence_agency = {
			name = "National Intelligence Centre (CNI)"
			icon = GFX_intelligence_agency_logo_spr
		}
		set_country_flag = MD_skip_treasury_cost
		upgrade_intelligence_agency = upgrade_form_department
		upgrade_intelligence_agency = upgrade_establish_cyber_operations_division
		clr_country_flag = MD_skip_treasury_cost
	}


	# Relation Starting Configuration (moved from on_startup)
	add_opinion_modifier = { target = SAU modifier = Arabian_Peninsula_West_Economical_Relations }
	reverse_add_opinion_modifier = { target = SAU modifier = Arabian_Peninsula_West_Economical_Relations }
	add_opinion_modifier = { target = UAE modifier = Arabian_Peninsula_West_Economical_Relations }
	reverse_add_opinion_modifier = { target = UAE modifier = Arabian_Peninsula_West_Economical_Relations }
	add_opinion_modifier = { target = QAT modifier = Arabian_Peninsula_West_Economical_Relations }
	reverse_add_opinion_modifier = { target = QAT modifier = Arabian_Peninsula_West_Economical_Relations }
	add_opinion_modifier = { target = OMA modifier = Arabian_Peninsula_West_Economical_Relations }
	reverse_add_opinion_modifier = { target = OMA modifier = Arabian_Peninsula_West_Economical_Relations }
	add_opinion_modifier = { target = CUB modifier = sanctions }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists }
	add_opinion_modifier = { target = TTP modifier = AlQaida_Are_Terrorists_Trade }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists }
	add_opinion_modifier = { target = TAL modifier = Taliban_Are_Terrorists_Trade }
	reverse_add_opinion_modifier = { target = SOV modifier = RUS_OIL }
}

2017.1.1 = { 
	clr_country_flag = generic_election_killswitch
	clr_country_flag = SPR_initial_election_flag   

	# Political Parties
	set_country_flag = SPR_vox_forms
	set_country_flag = SPR_cidudanos_forms
	set_country_flag = SPR_death_of_charles_hugo
	set_country_flag = SPR_abdication_of_juan_carlos

	# Internal Factions
	set_variable = { small_medium_business_owners = 75 }
	set_variable = { landowners_opinion = 60 } 

	set_country_flag = military_advisors_IRQ
	IRQ = { add_to_variable = { foreign_advisors = 1 } }
	set_country_flag = military_advisors_MAL
	MAL = { add_to_variable = { foreign_advisors = 1 } }
 
	set_technology = {  
		body_armor_2 = 1 
		computing3 = 1 
		computing4 = 1 
		artificial_intelligence_1 = 1
		artificial_intelligence_2 = 1 
		genetics_3 = 1  
		wifi = 1
		internet3 = 1	#3G
		edge = 1
		umts = 1
		hsupa = 1
		internet4 = 1	#4G
		lte = 1  
	}
	if = {
		limit = { NOT = { has_dlc = "La Resistance" } }
		set_technology = {  
			decryption3 = 1 
			decryption4 = 1  
			encryption2 = 1 
			encryption4 = 1 
		}
	}  
	if = {
		limit = { has_dlc = "No Step Back" } 
		set_technology = {
			mbt_tech_1 = 1
			defensive_systems_2 = 1
			nsb_gun_technology_2 = 1
			nsb_artillery_ammo_2 = 1
			nsb_special_ammo_1 = 1
			nsb_AA_autocannon_1 = 1
			nsb_SHORAD_missile_1 = 1
			tank_components_tech_2 = 1
			tank_components_tech_3 = 1
			small_medium_gun_tech = 1
			small_medium_gun_tech_2 = 1
			medium_gun_tech_2 = 1
			armor_tech_2 = 1
			armor_tech_3 = 1
			era_tech_2 = 1
			diesel_engine_tech_3 = 1
			diesel_engine_tech_4 = 1
			turbine_engine_tech_2 = 1
		} 
		else = {
			set_technology = {
				MBT_3 = 1
				MBT_4 = 1 
			}
		}
	} 
	set_technology = {
		corvette_hull_1 = 1
		corvette_hull_2 = 1
		corvette_hull_3 = 1
		corvette_hull_4 = 1
		frigate_hull_1 = 1
		frigate_hull_2 = 1
		frigate_hull_3 = 1
		frigate_hull_4 = 1
		destroyer_hull_1 = 1
		destroyer_hull_2 = 1
		cruiser_hull_1 = 1
		battleship_hull_1 = 1
		helicopter_operator_hull_1 = 1
		helicopter_operator_hull_2 = 1
		attack_submarine_hull_1 = 1
		attack_submarine_hull_2 = 1
		attack_submarine_hull_3 = 1
		attack_submarine_hull_4 = 1
		missile_submarine_hull_1 = 1
		missile_submarine_hull_2 = 1
		aircraft_carrier_engineering = 1
		aircraft_heli_engineering_1 = 1
		aircraft_heli_engineering_2 = 1
		aircraft_heli_engineering_3 = 1 
	}  
	### Economy
	set_variable = { var = debt value = 1552 }
	set_variable = { var = int_investments value = 772 }
	set_variable = { var = treasury value = 63 }
	set_variable = { var = corporate_tax_rate value = 25 }
	set_variable = { var = population_tax_rate value = 20 }

	set_popularities = {
		democratic = 68.0
		communism = 0.0
		fascism = 0.0
		neutrality = 32.0
		nationalist = 0.0
	}
	set_politics = {
		ruling_party = democratic
		last_election = "2016.6.26"
		election_frequency = 48
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.33 } #conservatism
	set_variable = { party_pop_array^2 = 0.13 } #liberalism
	set_variable = { party_pop_array^3 = 0.22 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.18 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.14 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 1 }

	startup_politics = yes

	create_country_leader = {
		name = "Mariano Rajoy"
		picture = "mariano_rajoy.dds"
		ideology = conservatism
		traits = {
			western_conservatism
		}
	} 
}